package com.mdd.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("用户好友列实体")
public class UserFriend implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "好友ID")
    private Integer uid;

    @ApiModelProperty(value = "注册之后绑定app的用户id")
    private Integer userId;

    @ApiModelProperty(value = "头像")
    private String headPic;

    @ApiModelProperty(value = "名字")
    @NotNull(message = "姓名参数缺失")
    private String name;

    @ApiModelProperty(value = "电话")
    @NotNull(message = "手机号码参数缺失")
    private String phone;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    // 生日 格式化显示
    @TableField(exist = false)
    private String birthdayShow;
    
    // 生日 格式化显示
    @TableField(exist = false)
    private String birthdayYmd;
    
    @TableField(exist = false)
    private String nickName;
    
    
    @ApiModelProperty(value = "地址")
    private String address;
    
    @ApiModelProperty(value = "详细地址")
    private String addressDetail;
    
    @ApiModelProperty(value = "职位")
    private String position;

    @ApiModelProperty(value = "单位名称")
    private String unitName;

    @ApiModelProperty(value = "纳税人识别号")
    private String taxNumber;

    @ApiModelProperty(value = "单位地址")
    private String unitAddress;

    @ApiModelProperty(value = "单位电话")
    private String unitPhone;

    @ApiModelProperty(value = "开户银行")
    private String bankName;

    @ApiModelProperty(value = "银行账号")
    private String bankCard;

    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @ApiModelProperty(value = "修改时间")
    private Long updateTime;
    
    @ApiModelProperty(value = "邮箱地址")
    private String email;
    
    @TableField(exist = false)
    private Integer isFriend = 0;
    
    @TableField(exist = false)
    private String constellation; // 星座
    
    @TableField(exist = false)
    private String zodica; // 生肖

    @TableField(exist = false)
    private String birthdayRemark; // 生日描述

    @TableField(exist = false)
    private Integer friendStatus = 1; // 好友状态 [1=普通 2=黑名单 3=特别关心]
    
    @TableField(exist = false)
    private Integer groupId; // 分组ID
    
    @TableField(exist = false)
    private String groupName; // 分组名称

    
}